package com.yanqu.road.entity.activity.carptrip.enums;

public enum  eCarpTripEventType {

    Weapons(2001, "武器事件（加法）"),

    Traps(2002, "陷阱事件（减法）"),

    Treasures(2003, "宝物事件（乘法）"),

    Box(2004, "宝箱事件（物品）"),

    Division(2005, "宝物事件（除法）"),

    Monster(3001, "普通战斗事件"),

    Boss(3002, "BOSS事件"),
            ;

    eCarpTripEventType(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    int type;

    String desc;

    public void setType(int type) {
        this.type = type;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }

    public static eCarpTripEventType getType(int type){
        for (eCarpTripEventType eventType : eCarpTripEventType.values()) {
            if(eventType.type == type){
                return eventType;
            }
        }
        return null;
    }
}
